#include "GBMors.h"
#include "reg52.h" 

sbit k1 = P3^1;
sbit k2 = P3^0;
sbit k3 = P3^2;
sbit k4 = P3^3;
unsigned char key1Pros(){
	if(k1 == 0){
		delay(1000);
		if(k1 == 0){
		return 1;
		}
		while(!k1);
	}
	return 0;
}

unsigned char key2Pros(){
	if(k2 == 0){
		delay(1000);
		if(k2 == 0){
		return 1;
		}
		while(!k2);
	}
	return 0;
	
}

unsigned char key3Pros(){
	if(k3 == 0){
		delay(1000);
		if(k3 == 0){
		return 1;
		}
		while(!k3);
	}
	return 0;
}

unsigned char key4Pros(){
	if(k4 == 0){
		delay(1000);
		if(k4 == 0){
		return 1;
		}
		while(!k4);
		return 0;
	}
}